package com.card.hwatt.controllers;

import java.util.List;

import javax.servlet.http.HttpServletRequest;

import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.card.hwatt.core.DataMapUntils;
import com.card.hwatt.dto.*;

/**
 * 数据字典
 * @author Administrator
 *
 */
@Controller
@Scope("prototype")
@RequestMapping("/datamap")
public class DataMapController extends BaseController {

	@RequestMapping("/loadAll")
	public @ResponseBody
	List<DataMap> loadAll(HttpServletRequest request) {
		return DataMapUntils.loadAllDataMap(request);
	}
}
